package top.toptimus.dto.design;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 设计点顺序DTO
 *
 * @author gaoyu
 */
@NoArgsConstructor
@Data
public class DesignItemSequenceDTO {
    private String itemTypeNameCn;
    private String itemCd;
    private String itemValue;
    private int index;

    public DesignItemSequenceDTO(
            String itemTypeNameCn,
            String itemCd,
            String itemValue,
            String index
    ) {
        this.itemTypeNameCn = itemTypeNameCn;
        this.itemCd = itemCd;
        this.itemValue = itemValue;
        this.index = Integer.parseInt(index);
    }
}
